package com.heima.service;

import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.model.search.pojos.SearchArticleVo;
import freemarker.template.TemplateException;

import java.io.IOException;
import java.util.Date;
import java.util.List;

/**
 * @author itheima
 * @since 2022-12-31
 */
public interface ArticleService {

    List<ApArticle> load(ArticleHomeDto dto);

    List<ApArticle> loadmore(ArticleHomeDto dto);

    List<ApArticle> loadnew(ArticleHomeDto dto);

    ApArticle saveArticle(ArticleDto dto) throws IOException, TemplateException;

    String generateHtml(String content) throws IOException, TemplateException;

    List<SearchArticleVo> searchArticle(UserSearchDto dto) throws IOException;
}
